package jdbc;

public class DatabaseEnum {

    //驱动
    public enum driverClass {
        ORACLE_DRIVER_CLASS("oracle.jdbc.driver.OracleDriver"),
        DB2_DRIVER_CLASS("com.ibm.db2.jcc.DB2Driver"),
        MYSQL_DRIVER_CLASS("com.mysql.jdbc.Driver"),
        SQLSERVER_DRIVER_CLASS("com.microsoft.sqlserver.jdbc.SQLServerDriver"),
        DM_DRIVER_CLASS("dm.jdbc.driver.DmDriver"),
        HIVE_DRIVER_CLASS("org.apache.hive.jdbc.HiveDriver"),
        KINGBASE_DRIVER_CLASS("com.kingbase.Driver");

        private String driverClass;

        driverClass(String driverClass) {
            this.driverClass = driverClass;
        }

        public String toString() {
            return String.valueOf(this.driverClass);
        }
    }

    //版本
    public enum version {
        ORACLE_VERSION("12.1.0.2.0"),
        DB2_VERSION("1.4.2"),
        MYSQL_VERSION("5.1.24"),
        SQLSERVER_VERSION("11.0.6020.0"),
        DM_VERSION("7.0.0"),
        HIVE_VERSION("2.0.0");

        private String version;

        version(String version) {
            this.version = version;
        }

        public String toString() {
            return String.valueOf(this.version);
        }
    }

}